home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / sbspline.6 < prev    next >
Encoding:
Text File  |  1996-07-16  |  2.1 KB  |  48 lines

  1. .TH SBSPLINE
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. SBSPLINE
  5.  
  6.  
  7.  
  8.  SurfaceType SBSPLINE( NumericType UOrder, NumericType VOrder,
  9.                        ListType CtlMesh, ListType KnotVectors )
  10.  
  11. Creates a Bspline surface from the provided UOrder and VOrder
  12. orders, the control mesh CtlMesh, and the two knot vectors KnotVectors.
  13. CtlMesh is a list of rows, each of which is a list of control points.
  14. All control points must be of point type (E1-E5, P1-P5), or regular
  15. PointType defining the surface's control mesh. Surface's point type will
  16. be of a space which is the union of the spaces of all points.
  17. KnotVectors is a list of two knot vectors. Each knot vector is a
  18. list of NumericType knots of length #CtlPtList plus the Order.
  19. If, however, the length of the knot vector is equal to #CtlPtList +
  20. Order + Order - 1} the curve is assumed periodic. 
  21. The knot vector may also be a list of a single constant KV_OPEN or
  22. KV_FLOAT or KV_PERIODIC, in which a uniform knot vector with the
  23. appropriate length and with open, floating or periodic end condition
  24. will be constructed automatically.
  25.  
  26. Example:
  27.  
  28.     Mesh = list ( list( ctlpt( E3, 0.0, 0.0, 1.0 ),
  29.                         ctlpt( E3, 0.0, 1.0, 0.0 ),
  30.                         ctlpt( E3, 0.0, 2.0, 1.0 ) ),
  31.                   list( ctlpt( E3, 1.0, 0.0, 0.0 ),
  32.                         ctlpt( E3, 1.0, 1.0, 2.0 ),
  33.                         ctlpt( E3, 1.0, 2.0, 0.0 ) ),
  34.                   list( ctlpt( E3, 2.0, 0.0, 2.0 ),
  35.                         ctlpt( E3, 2.0, 1.0, 0.0 ),
  36.                         ctlpt( E3, 2.0, 2.0, 2.0 ) ),
  37.                   list( ctlpt( E3, 3.0, 0.0, 0.0 ),
  38.                         ctlpt( E3, 3.0, 1.0, 2.0 ),
  39.                         ctlpt( E3, 3.0, 2.0, 0.0 ) ),
  40.                   list( ctlpt( E3, 4.0, 0.0, 1.0 ),
  41.                         ctlpt( E3, 4.0, 1.0, 0.0 ),
  42.                         ctlpt( E3, 4.0, 2.0, 1.0 ) ) );
  43.     Srf = SBSPLINE( 3, 3, Mesh, list( list( KV_OPEN ),
  44.                                       list( 3, 3, 3, 4, 5, 6, 6, 6 ) ) );
  45.  
  46. constructs a bi-quadratic Bspline surface with its first knot vector
  47. having uniform knot spacing with open end conditions.
  48.